package demo.sciau.votesystem.service;

import demo.sciau.votesystem.entity.PO.UserPO;
import demo.sciau.votesystem.entity.VO.ResultVO;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author beifengtz
 * @Date Created in 8:58 2018/10/28
 * @Description:
 */

public interface UserService {

    ResultVO getAllUser();

    ResultVO login(int role,String username, String password, HttpServletRequest request);

    ResultVO getUser(int page, int limit);

    ResultVO deleteUserById(String uid);

    ResultVO addUser(UserPO userPO);

    ResultVO updateUser(UserPO userPO);

    ResultVO checkUser(String username);
}
